import { IFeidaoAiBrowserComponent } from "@feidao/web/interfaces";
import Pie from "@feidao/widgets/fd-wh000005";

export default async function a003(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	const pie = fd.data.node.querySelector<Pie>('[id="fd-wh000005-001"]');
	const src = pie.get_data_url();
	fd.data.node.querySelector<HTMLImageElement>('[data-feidao-id="fd-wh000005-005"]').src = src;
	fd.data.node.querySelector<HTMLAreaElement>('[data-feidao-id="fd-wh000005-003"]').innerHTML = `
const pie = fd.data.node.querySelector<Pie>('[id="fd-wh000005-001"]');
const src = pie.get_data_url();
fd.data.node.querySelector<HTMLImageElement>('[data-feidao-id="fd-wh000005-005"]').src = src;
		`;
}
